home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Apple Shared Library Manager / ASLM Examples / Sample Apps / PSample / Sources / SampleLibrary.exp < prev    next >
Encoding:
Text File  |  1996-11-19  |  1.8 KB  |  56 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        SampleLibrary.exp
  3.  
  4.     Contains:    Library and FunctionSet declarations for PSampleLibrary
  5.  
  6.     Copyright:    © 1993 by Apple Computer, Inc., all rights reserved.
  7.  
  8. */
  9.  
  10.  
  11. #include <LibraryManager.h>
  12.  
  13. #define kTrafficLightLibID            "slm:samp$PTrafficLight"
  14. #define kTrafficLightFunctionSet     "slm:samp$PTrafficLightFunctionSet,1.1"
  15.  
  16. /*————————————————————————————————————————————————————————————————————————————————————
  17.     Library declarations defines the ID of the shared library and the version.\
  18.         initproc(optional)        "C" routine to be called immediately after loading 
  19.         cleanupProc(optional)    "C" routine to be called after library is unloaded
  20.         flags(optional)
  21.             noSegUnload            The segments of the shared library cannot be unloaded.
  22.             preload                All segments of the shared library should be loaded at
  23.                                 library load time.
  24.         id(required)            Defines the ID of the library
  25.         version(required)        Defines the version of the library.
  26.         memory(optional)         The default pool memory allocation will be the 
  27.             client                from client pool.
  28.             local                from local pool 
  29. ————————————————————————————————————————————————————————————————————————————————————*/
  30.  
  31. Library
  32. {
  33.     id         =    kTrafficLightLibID;
  34.     version =    1.1;
  35.     memory     =    client;
  36. };
  37.  
  38. /*————————————————————————————————————————————————————————————————————————————————————
  39.     Declarations of functions we want to export. Since the functions are pascal 
  40.     functions we need to put the pascal keyword in front of the function name.
  41. ————————————————————————————————————————————————————————————————————————————————————*/
  42.  
  43. FunctionSet lighttrafficfunctionset
  44. {
  45.  
  46.     id         =    kTrafficLightFunctionSet;
  47.     version =     1.1;
  48.     exports =     pascal NewTrafficLight, 
  49.                 pascal FreeTrafficLight,
  50.                 pascal GetLightState,
  51.                 pascal SetLightState,
  52.                 pascal DrawLight,
  53.                 pascal AdjustTrafficLightMenus,
  54.                 pascal DoTrafficLightMenuCommand;
  55. };
  56.